<?php
/**
 * Created by PhpStorm.
 * User: Fly
 * Date: 2018/12/19
 * Time: 20:34
 */
namespace app\home\controller;

use \think\Controller;
use think\Request;

class Base extends Controller
{
    public function __construct(Request $request = null)
    {
        //1、判断是否登陆
        if($this->isLogin()){

        }


        parent::__construct($request);
    }


    //判断是否登陆
    public function isLogin()
    {
        return true;
    }

    //获取用户类型，是匿名、已登陆用户、配送员
    public function getUserType(){
        //0匿名用户、1用户、2配送员


        return 0;
    }

}
